package cn.tedu.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 郭鲁政
 */
@FeignClient(name = "easy-id" )
public interface EasyIdClient {
    /**
     * 远程调用生成唯一id服务
     * @param businessType
     * @return
     */
    @GetMapping("/segment/ids/next_id")
    String nextId(@RequestParam("businessType") String businessType);
}
